package com.jingdianjichi.subject.domain.convert;


import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName :SubjectCategoryConverter
 * Package :com.jingdianjichi.subject.application.convert
 * Desciption :
 *
 * @Author :
 * @Create : 17:20
 * @Version :1.0
 */
@Mapper
public interface SubjectLabelConverter {

  SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

  // 单个对象的映射：SubjectLabelBO -> SubjectLabel
  SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBO);

  // 单个对象的映射：SubjectLabel -> SubjectLabelBO
  SubjectLabelBO convertLabelToBo(SubjectLabel subjectLabel);

  // 列表映射：List<SubjectLabel> -> List<SubjectLabelBO>
  List<SubjectLabelBO> convertLabelToBoList(List<SubjectLabel> subjectLabelList);

  // 列表映射：List<SubjectLabelBO> -> List<SubjectLabel>
  List<SubjectLabel> convertBoToLabelList(List<SubjectLabelBO> subjectLabelBOList);
}


